package com.tdtxdcxm.ruralcommunity.webviewconfig;

import ohos.agp.components.webengine.WebView;

public class SetWebConfig {
    private SetWebConfig(){}
    public static void setWebViewConfig(WebView webView){
        if(webView == null){
            return;
        }
        webView.getWebConfig().setJavaScriptPermit(true);
        webView.getWebConfig().setLoadsImagesPermit(true);
        webView.getWebConfig().setTextAutoSizing(true);
    }
}
